package com.sharekitchen.service;

import com.sharekitchen.dto.DeviceDto;
import com.sharekitchen.entity.Device;
import com.sharekitchen.entity.DeviceDetail;
import com.sharekitchen.entity.DeviceImages;
import com.sharekitchen.entity.Page;

import java.util.List;

public interface DeviceService {

    List<Device> getAllDev(Page page);

    List<DeviceImages> getAllDevImg();

    List<DeviceDetail> getAllDevDetail();

    Device getDevById(String devId);
    DeviceImages getDevImgById(String devId);
    DeviceDetail getDevDetailById(String devId);

//    添加设备
    boolean addDevice(DeviceDto deviceDto);
    boolean addDeviceImages(DeviceImages deviceDto);
    boolean addDeviceDetail(DeviceDetail deviceDto);

//    删除设备
    boolean deleteDevice(String devId);
    boolean deleteDeviceImages(String devId);
    boolean deleteDeviceDetail(String devId);

//    修改设备
    boolean updateDevice(DeviceDto deviceDto);
    boolean updateDeviceImages(DeviceImages deviceImages);
    boolean updateDeviceDetail(DeviceDetail deviceDetail);

    int getTotalCount();

    List<Long> getDeviceNum();
}
